From: Giuseppe Scrivano Date: Tue, 12 May 2015 07:39:13 +0000 (+0200) Subject: syntax-check: add syntactic rule to prohibit gs_unref_* X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~723 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=f38ec6dfdf0c564ab87f5aa809ad9785bc7e3bcc;p=ostree.git syntax-check: add syntactic rule to prohibit gs_unref_* Signed-off-by: Giuseppe Scrivano --- diff --git a/maint.mk b/maint.mk index ff5400fe..9b773570 100644 --- a/maint.mk +++ b/maint.mk @@ -1032,6 +1032,11 @@ sc_const_long_option: halt='add "const" to the above declarations' \ $(_sc_search_regexp) +sc_prohibit_gs_unref: + @prohibit='\bgs_unref_(keyfile|variant*|ptrarray|hashtable|bytes|object)\b' \ + halt="do not use gs_unref_*; use g_autoptr instead" \ + $(_sc_search_regexp) + NEWS_hash = \ $$($(SED) -n '/^\*.* $(PREV_VERSION_REGEXP) ([0-9-]*)/,$$p' \ $(srcdir)/NEWS \